<?php
namespace app\validate;

use think\Validate;

class ShopApply extends Validate
{
    protected $rule = [
        'name' => 'require',
        'mobile' => 'require',
        'industry' => 'require|number|integer',
        'address' => 'require',
        'license' => 'require|number|integer',
        'img' => 'require|number|integer',
        'pass' => 'require',
    ];

    protected $message = [
        'name.require' => '请输入名字',
        'mobile.require' => '请输入手机号',
        'industry.require' => '请选择行业',
        'industry.number' => '行业参数必须为数字',
        'industry.integer' => '行业参数必须为数字',
        'address.require' => '地址不能为空',
        'license.require' => '营业执照不能为空',
        'license.number' => '营业执照必须为数字',
        'license.integer' => '营业执照必须为数字',
        'license.require' => '门店图片不能为空',
        'license.number' => '门店图片必须为数字',
        'license.integer' => '门店图片必须为数字',
        'pass.require' => '请输入密码',
    ];

}